﻿@using xiushen.Infrastructure
@model xiushen.Models.CatalogModel
@{
    ViewBag.Title = "CreateCategory";
}

<form method="POST"  >
    <table>
        <tr>
            <td>
                目录
            </td>
            <td>
                @Html.DropDownListFor(r => r.CategoryData.ParentID, Model.Categorys)
            </td>
        </tr>
        <tr>
            <td>名称</td>
            <td>  @Html.TextBoxFor(r=>r.CategoryData.Name)</td>
        </tr>
         <tr>
            <td>类型</td>
            <td>  @Html.DropDownListFor(r => r.CategoryData.Type, new List<SelectListItem>()
             { new SelectListItem() { Text = "书籍", Value = Constants.Book }, new SelectListItem() 
             { Text = "图片", Value = Constants.Image } , new SelectListItem() 
             { Text = "视频", Value = Constants.Video}})</td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="提交"></input></td>
        </tr>
    
    </table>
</form>
@Html.ActionLink("返回目录" ,"Index")